<?php
namespace app\index\model;
use think\Db;
use think\Model;
/*消息层*/
class Messages extends Model
{
  //查询用户通知状态
    public static function userSel($uid){
    	 $userOne=Db::name('user_info')
                 ->where(['uid'=>$uid,'userFlag'=>'1'])
                 ->field('concernId,actnotify,captain_state')
    	           ->find();
       
         return $userOne;
    }
   //通知消息
   public static function meSel($where){
   
   	$newsel=Db::name('user_message')
   			->where($where)
   			->select();
         
         return $newsel;
   }
}